package com.ruoyi.common.entity.TransactionEntity;

import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.core.annotation.Excel;
import com.ruoyi.common.core.web.domain.BaseEntity;

import java.util.List;

/**
 * 商品规格对象 product_spec
 * 
 * @author ruoyi
 * @date 2025-08-08
 */
public class ProductSpec extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 规格ID */
    @Excel(name = "规格ID")
    private Long id;

    /** 规格名称，如：颜色、尺码、容量 */
    @Excel(name = "规格名称，如：颜色、尺码、容量")
    private String name;

    @Excel(name = "值")
    private List<ProductSpecValue> specValues;

    /** 删除标志（0-未删除，1-已删除） */
    private String delFlag;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public List<ProductSpecValue> getSpecValues() {
        return specValues;
    }

    public void setSpecValues(List<ProductSpecValue> specValues) {
        this.specValues = specValues;
    }

    public String getDelFlag() {
        return delFlag;
    }

    public void setDelFlag(String delFlag) {
        this.delFlag = delFlag;
    }

    @Override
    public String toString() {
        return "ProductSpec{" +
                "id=" + id +
                ", name='" + name + '\'' +
                ", specValues=" + specValues +
                ", delFlag='" + delFlag + '\'' +
                '}';
    }
}
